/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.test2.service;

import java.util.List;

import com.thinkgem.jeesite.modules.test2.entity.FarmClass;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.test2.entity.Farm;
import com.thinkgem.jeesite.modules.test2.dao.FarmDao;

/**
 * 养殖场管理Service
 * @author dby
 * @version 2020-09-15
 */
@Service
@Transactional(readOnly = true)
public class FarmService extends CrudService<FarmDao, Farm> {

	public Farm get(String id) {
		return super.get(id);
	}
	
	public List<Farm> findList(Farm farm) {
		return super.findList(farm);
	}
	
	public Page<Farm> findPage(Page<Farm> page, Farm farm) {
		return super.findPage(page, farm);
	}
	
	@Transactional(readOnly = false)
	public void save(Farm farm) {
		super.save(farm);
	}
	
	@Transactional(readOnly = false)
	public void delete(Farm farm) {
		super.delete(farm);
	}


//	public List<FarmClass> findFarmClassList(FarmClass farmClass){
//		return super.findFarmClassList(farmClass);
//	}


}